package design.simdi.code.final_paper.core.daos;

import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import design.simdi.code.final_paper.core.entities.Mesaj;

/**
 * 
 * @author Marius Dumitriu - (Jun 25, 2010 - 8:29:09 PM)
 * 
 */
public interface MesajDao extends HibernateDAO<Mesaj, Long> {
	@Repository(value = "mesajDao")
	public static class MesajDaoImpl extends HibernateDAOImpl<Mesaj, Long> implements MesajDao {

		@Autowired
		public MesajDaoImpl(SessionFactory factory) {
			setSessionFactory(factory);
			setReferenceClass(Mesaj.class);
		}

	}

}
